Explanation:

AudioClip is one of the nodes which can be the source for a Sound node. The playing of the sound is controlled through this node.

startTime specifies when to start playing. stopTime may be used to stop the sound.

The loop field specifies whether or not the sound is to be constantly repeated. If this field is TRUE then the sound is played continuously until stopTime is reached. If stopTime < startTime then it will play forever.

Sound can be started by setting the startTime to the current time.

If a sound is currently playing changes to startTime are ignored. The sound can be made to stop by setting the stopTime to the current time.

This switching on and off can be done for several sounds and so the Java script can be used to control combinations of sounds through routes. Similarly the pitch can also be modified through the Java script.